<template>
  <div class="userLimit">
    <el-table :data="tableData" style="width: 100%">
      <el-table-column label="成员" prop="name" min-width="30%"></el-table-column>
      <el-table-column label="权限" min-width="60%"></el-table-column>
      <el-table-column label="操作" min-width="10%">
        <template slot-scope="scope">
          <el-button size="small" type="success" @click="limitFn(scope.row)">权限分配</el-button>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  data() {
    return {
      tableData: [
        {
          id: "111",
          name: "组长",
          limit: []
        },
        {
          id: "222",
          name: "组员",
          limit: []
        } 
      ],
      limitList:[
        {
          name: "项目管理",
          icon: "el-icon-s-operation",
          children: [
            {
              name: "项目大纲",
              path: "/home"
            },
            {
              name: "新增需求计划",
              path: "/change"
            },
            {
              name: "需求计划审核",
              path: "/planReview"
            },
            {
              name: "计划分配",
              path: "/planDis"
            },
            {
              name: "自己的计划",
              path: "/ownPlan"
            },
            {
              name: "自己的项目",
              path: "/ownProject"
            },
            {
              name: "项目进度查询",
              path: "/progress"
            }
          ]
        },
        {
          name: "人员管理",
          icon: "el-icon-user",
          children: [
            {
              name: "权限分配",
              path: "/limit"
            }
          ]
        },
        {
          name: "加班管理",
          icon: "el-icon-tickets",
          children: [
            {
              name: "加班申请",
              path: "/overtimeApply"
            },  
            {
              name: "加班审核",
              path: "/overtimeAudit"
            },
            {
              name: "加班列表",
              path: "/overtimeList"
            }
          ]
        },
        
        {
          name: "消息提醒",
          icon: "el-icon-user",
          path: "/messageAlert"
        }
      ]
    };
  },
  methods: {}
};
</script>

<style lang="scss" scoped>
</style>
